//解析地址栏的携带的参数值
function qsToJson(query) {
    let obj = {}
    let s1 = query.substring(1)
    let arr1 = s1.split('&')
    // console.log(arr1)
    arr1.forEach(value => {
        let arr2 = value.split('=')
        obj[arr2[0]] = decodeURIComponent(arr2[1])
    })
    return obj
}